package com.happystreet.mission
{
	import com.happystreet.config.ShopsConfig;
	import com.happystreet.config.TextConfig;
	import com.happystreet.types.MissionTypes;

	/**
	 *升级货车任务 
	 * @author Liseen
	 * 
	 */	
	public class MissionUpgradeTruckTemplate extends MissionTemplate
	{
		public function MissionUpgradeTruckTemplate(id:String)
		{
			super();
			this.id = id;
			this.type = MissionTypes.configurable;
			characterName = "Mechanic";
			this.title = TextConfig.getText("MissionUpgradeTruckTitleTemplate");
			cashPrice = 1;
			var _local2:RegExp = /UT([0-9]*)_([0-9]*)/;
			var _local3:String = id.replace(_local2, "$1");
			var _local4:String = id.replace(_local2, "$2");
			var _local5:String = ShopsConfig.getShopNameByType(int(_local3));
			helpText = TextConfig.getText("MissionUpgradeTruckBubbleTemplate", _local5);
			goalLabelTable = [TextConfig.getText("MissionUpgradeTruckGoal1Template", _local5)];
			var _local6:String = ("mission_deliveryTruck" + _local4);
			goalSymbolNameTable = [_local6];
			goalMaxProgressTable = [1];
		}
	}
}